import { request, request1 } from '@/utils/request';

// 获取运单NO
export function getWaybNbyTenantid(driverId, tenantId, planType) {
  return request1({
    url: `/metering-docking/getWaybillNo/${driverId}/${tenantId}/${planType}`,
    method: 'GET'
  });
}
// 获取接单费用
export function getWaybCost(params) {
  return request({
    url: `/order-lineup-pay/pay/get-order-cost`,
    headers: {
      isToken: true
    },
    method: 'GET',
    params
  });
}
// 接单费用支付
export function payWaybillCost(data) {
  return request({
    url: '/order-lineup-pay/pay/order-pay',
    method: 'POST',
    data: data
  });
}
// 排号费用支付
export function payLineupCost(data) {
  return request({
    url: '/order-lineup-pay/pay/lineup-notify-pay',
    method: 'POST',
    data: data
  });
}

// 排号后叫号提醒费用支付
export function callNotifyPay(data) {
  return request({
    url: '/order-lineup-pay/pay/call-notify-pay',
    method: 'POST',
    data: data
  });
}

// 获取司机账户
export function getDriverMoney(id) {
  return request({
    url: `/queue/driver-account/get`,
    headers: {
      isToken: true
    },
    method: 'GET'
  });
}

// 获取销售运单详情
export function getSaleWaybillById(params) {
  return request({
    url: '/queue/sale-waybill/get-saleWaybill-byId',
    headers: {
      isToken: true
    },
    method: 'GET',
    params
  });
}

// 获取租户字典
export function getDataByType(params) {
  return request1({
    url: '/customer/dict-data/get-data-by-type',
    method: 'GET',
    params
  });
}
